<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title id="titleId">全优绩效</title>
    <link rel="stylesheet" href="http://at.alicdn.com/t/font_935109_gc0fvd0po6t.css"> <!-- iconfont -->
    <!-- <script src="./static/js/sockjs.js"></script> -->
    <!-- <script src="http://res.wx.qq.com/open/js/jweixin-1.4.0.js"></script> -->
    <!-- <script type='application/javascript' src="./src/package/plugins/modules/fastClick.js"></script> -->
    <script src="http://pv.sohu.com/cityjson?ie=utf-8"></script>  <!-- 获取ip -->
    <style>
      html,
      body,
      #app {
        height: 100%;
        margin: 0;
        padding: 0;
        -webkit-overflow-scrolling:touch; /** 启用硬件加速特性，防止ios滑动卡顿 */
      }
      #loader-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 999999;
        background: white;
      }
      .lds-css{
        text-align: center;
        margin: auto;
        width: 100%;
        position: relative;
      }

      @keyframes lds-ball {
        0%, 100% {
          animation-timing-function: cubic-bezier(0.45, 0, 0.9, 0.55);
        }
        0% {
          -webkit-transform: translate(0, 0);
          transform: translate(0, 0);
        }
        50% {
          -webkit-transform: translate(0, 108px);
          transform: translate(0, 108px);
          animation-timing-function: cubic-bezier(0, 0.45, 0.55, 0.9);
        }
        100% {
          -webkit-transform: translate(0, 0);
          transform: translate(0, 0);
        }
      }
      @-webkit-keyframes lds-ball {
        0%, 100% {
          animation-timing-function: cubic-bezier(0.45, 0, 0.9, 0.55);
        }
        0% {
          -webkit-transform: translate(0, 0);
          transform: translate(0, 0);
        }
        50% {
          -webkit-transform: translate(0, 108px);
          transform: translate(0, 108px);
          animation-timing-function: cubic-bezier(0, 0.45, 0.55, 0.9);
        }
        100% {
          -webkit-transform: translate(0, 0);
          transform: translate(0, 0);
        }
      }
      .lds-ball {
        position: relative;
      }
      .lds-ball div {
        text-align: center;
        /*position: absolute;*/
        margin: auto;
        margin-top: 40%;
        width: 52px;
        height: 52px;
        border-radius: 50%;
        background: #f05125;
        -webkit-animation: lds-ball 1s linear infinite;
        animation: lds-ball 1s linear infinite;
      }
      .lds-ball {
        -webkit-transform: translate(-100px, -100px) scale(1) translate(100px, 100px);
        transform: translate(-100px, -100px) scale(1) translate(100px, 100px);
      }
    </style>
  </head>
  <body>
    <div id="app">
      <!-- loading -->
      <div id="loader-wrapper">
        <div id="loader">
          <div class="lds-css ng-scope">
            <div style="width:100%;height:100%" class="lds-ball">
              <div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <script type="text/javascript">
      window.onload=function(){
        if ('addEventListener' in document) {
          document.addEventListener('DOMContentLoaded', function() {
            FastClick.attach(document.body);
          }, false);
        }
      }
      var _hmt = _hmt || [];
      (function() {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?798660a936cc68ca354e24b698208999";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
      })();
      document.addEventListener('plusready', function(a) { //等待plus ready后再调用5+ API：
        //// 在这里调用5+ API
        var first = null;
        plus.key.addEventListener('backbutton', function() { //监听返回键
          //首次按键，提示‘再按一次退出应用’
          if (!first) {
            first = new Date().getTime(); //获取第一次点击的时间戳
            // console.log('再按一次退出应用');//用自定义toast提示最好
            // toast('双击返回键退出应用'); //调用自己写的吐丝提示 函数
            plus.nativeUI.toast("双击退出", {duration:'short'}); //通过H5+ API 调用Android 上的toast 提示框
            setTimeout(function() {
              first = null;
            }, 1000);
          } else {
            if (new Date().getTime() - first < 1000) { //获取第二次点击的时间戳, 两次之差 小于 1000ms 说明1s点击了两次,
              plus.runtime.quit(); //退出应用
            }
          }
        }, false);
      });

    </script>
  </body>
</html>
